<extend name="Public:innerbase" />
<block name="css"></block>
<block name="js">
<include file="Public:upload" />
<script type="text/javascript" src="{:STATICS}/js/holder.min.js"></script>
</block>
<block name="content">
<div class="container-fluid">
	<div class="page-header wm-page-header">
		<h3>印象管理</h3>
		<code><?php echo rtrim(C('wap_domain'),'/').U('Wap/Impression/index',['token'=>session('token'),'wechat_id'=>'{wechat_id}']);?></code>
	</div>
	<!-- Nav tabs -->
	<ul class="nav nav-tabs">
		<li><a href="{:U('User/Impression/index')}">粉丝印象</a></li>
		<li class="active"><a href="javascript:void(0)">回复配置</a></li>
	</ul>
    <div style="margin-top:10px;">
		<form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
			<input type="hidden" value="{$set.id}" name="id" />
			<div class="form-group">
				<label class="control-label col-sm-2">关键词</label>
				<div class="col-md-5">
					<input type="input" class="form-control" name="keyword" value="{$keyword.keyword|default='微印象'}" />
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-2">回复标题</label>
				<div class="col-md-5">
					<input type="text" name="title" value="{$set.title}" class="form-control" />
				</div>
			</div>
			
			<div class="form-group">
				<label class="control-label col-sm-2">回复图片</label>
				<div class="col-md-5">
					<input type="hidden" name="picurl" value="{$set.picurl}" id="picurl" class="form-control" />
					<img id="picurlHolder" style="width:216px;height:120px;" class="img-rounded" <?php if($set["picurl"] == '')echo 'data-src="$holder.js/216x120/gray/text:720*400"';?> src="{$set.picurl}"/>
					<div class="btn-group" style="vertical-align:bottom;">
						<span class="btn btn-xs btn-primary" onclick="selectAsset('picurl',720,400)">
							<span class="glyphicon glyphicon-cloud-upload"></span>选择
						</span>
						<span class="btn btn-primary btn-xs" onclick="previewImg('picurl')">
							<span class="glyphicon glyphicon-picture"></span>预览
						</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-2">回复介绍</label>
				<div class="col-md-5">
					<textarea  name="info" id="info" class="form-control">{$set.info}</textarea>
				</div>
			</div>
			<!--
			<div class="form-group">
				<div class="col-md-5 col-sm-offset-2">
					<label>
						<input type="checkbox" name="needcheck" value="1" <if condition="$set.needcheck eq 1">checked</if> /> 需要审核
					</label>
				</div>
			</div>
			-->
			<div class="form-group">
				<div class="col-md-5 col-sm-offset-2">
					<button type="submit" name="button" class="btn btn-success">保存</button>
				</div>
			</div>
	</form>
  </div> 
</div>
</block>